package com.kl.feign.fallback;

import com.kl.domain.LineDTO;
import com.kl.domain.LineLogisticsStoreDTO;
import com.kl.domain.LogisticsStoreDTO;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.LineServcieFeign;
import com.kl.vo.RouteVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class LineServcieFeignFallback implements LineServcieFeign {

    @Override
    public Result<LineDTO> selectById(Long id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result insertById(String statrAddress, String endAddress) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result deleteByLineId(String id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result insertByLLId(Long lineId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<LineLogisticsStoreDTO>> selectByLineId(Long lineId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result deleteByLineId(Long lineId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<LineLogisticsStoreDTO> selectNextByLineId(Long lineId, Long logisticsStoreId) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<LineDTO> selectByBoth(String statrAddress, String endAddress) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<RouteVO> selectNameCity(String statrAddress, String endAddress) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result selectCount(String siteName,List<LogisticsStoreDTO> resultList) {
        return Result.build(ConstantEnum.FaillBack);
    }
}
